 package cn.exrick.xboot.modules.content.dao;

 import cn.exrick.xboot.base.XbootBaseDao;
 import cn.exrick.xboot.modules.base.entity.RoleDepartment;
 import cn.exrick.xboot.modules.content.entity.HontRoleDepartment;

 import java.util.List;


 /**
  * 岗位数据处理层
  * @author hml
  */
 public interface HontRoleDepartmentDao extends XbootBaseDao<HontRoleDepartment, String> {

  /**
   * 通过roleId获取
   * @param roleId
   * @return
   */
  List<HontRoleDepartment> findByHontRoleId(String roleId);

  /**
   * 通过角色id删除
   * @param roleId
   */
  void deleteByHontRoleId(String roleId);

  /**
   * 通过角色id删除
   * @param departmentId
   */
  void deleteByHontDepartmentId(String departmentId);
 }